<h2 class="h2-title">Cập nhật slide !!!</h2>

<?php if(isset($msg) AND $msg != ''):?>
<ul class="notification err">
    <li class="notifi_img"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_circle.png"/></li>

    <li class="msg"><?=$msg?></li>

    <li class="close"><img src="<?=base_url()?>assets/backend/css/images/icons/cross_grey_small.png"/></li>

</ul><!--End of .notification -->

<?php else:?>

<div class="form_input_index">
    <ul class="form_text">
    <form action="<?=base_url()?>backend/slide/editslide/<?=$slide->slide_id?>"  method="POST">
        <li class="text_input">Đường dẫn</li>
        <li><input type="text" value="<?=$slide->slide_link?>" name="slide_link" class="input-post"/></li>
        <?= form_error('slide_link','<li class="errors">','</li>'); ?>

        <li class="text_input">Mô tả slide</li>
        <li><input type="text" value="<?=$slide->slide_des?>" name="slide_des" class="input-post"/></li>
        <?= form_error('slide_des','<li class="errors">','</li>'); ?>

        <li class="text_input">Hình ảnh</li>
        <input type="text" value="<?=$slide->slide_image?>" id="slide_image_edit" name="slide_image_edit" />
        <input type="hidden" value="<?=$slide->slide_image_thumb?>" id="slide_image_thumb_edit" name="slide_image_thumb_edit" /><br /><br />
        <?= form_error('slide_image_edit','<li class="errors">','</li>'); ?>
        <?= form_error('slide_image_thumb_edit','<li class="errors">','</li>'); ?>
        <li id="slidethumbsedit">
            <img style="border: 1px solid #ccc" width="100px" height="100px" src="<?=base_url()?><?=$slide->slide_image_thumb?>" /><br/><br/>
        </li>

        <li class="text_input">Vị trí</li>
        <li><input type="text" value="<?=$slide->slide_order?>" name="slide_order" class="input-post"/></li>
        <?= form_error('slide_order','<li class="errors">','</li>'); ?>

        <li class="text_input">Trạng thái</li>
        <select name="slide_status">
            <option value="1" <?php if($slide->slide_status == 1) echo " selected "?>>Hiển thị</option>
            <option value="0" <?php if($slide->slide_status == 0) echo " selected "?>>Ẩn</option>
        </select>

        <div style="clear: both;"></div>
        <input type="submit" class="sub" value="Ðồng ý" name="sub"/>
        <a href="<?=base_url()?>backend/slide" class="bnt">Quay lại</a>
    </form>
    </ul>
</div>
<?php endif;?>